package com.fjnu.fjnu_grade_demo.moudle.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Repository
@TableName
public class StudentCourseGrade {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String courseName;

    private BigDecimal highestScore;

    private BigDecimal gpa;

    private Integer gpaRank;

    private String userName;

    private String academicYear;

    private String semester;
    private String studentId;

    // Constructors

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public StudentCourseGrade() {}

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public BigDecimal getHighestScore() {
        return highestScore;
    }

    public void setHighestScore(BigDecimal highestScore) {
        this.highestScore = highestScore;
    }

    public BigDecimal getGpa() {
        return gpa;
    }

    public void setGpa(BigDecimal gpa) {
        this.gpa = gpa;
    }

    public Integer getGpaRank() {
        return gpaRank;
    }

    public void setGpaRank(Integer gpaRank) {
        this.gpaRank = gpaRank;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAcademicYear() {
        return academicYear;
    }

    public void setAcademicYear(String academicYear) {
        this.academicYear = academicYear;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }

    @Override
    public String toString() {
        return "StudentCourseGrade{" +
                "id=" + id +
                ", courseName='" + courseName + '\'' +
                ", highestScore=" + highestScore +
                ", gpa=" + gpa +
                ", gpaRank=" + gpaRank +
                ", userName='" + userName + '\'' +
                ", academicYear='" + academicYear + '\'' +
                ", semester='" + semester + '\'' +
                ", studentId='" + studentId + '\'' +
                '}';
    }
}